package com.bojiu.lawsearch.lawsearch.service;

import com.bojiu.lawsearch.lawsearch.model.Page;
import com.bojiu.lawsearch.lawsearch.model.Withdraw;
import com.bojiu.lawsearch.lawsearch.util.JsonResult;

import java.math.BigDecimal;

/**
 * 提现记录表
 *
 * @author luhangqi
 * @email 1351395043@qq.com
 * @date 2020-02-24 18:18:27
 */
public interface WithdrawService {

    /**
     * 申请提现
     *
     * @param userId
     * @param amount
     */
    void apply(Integer userId, BigDecimal amount);

    /**
     * 提现至微信
     *
     * @param withdrawId
     * @param remark
     */
    JsonResult toWx(Integer withdrawId, String remark);

    /**
     * 提现至微信
     *
     * @param withdrawId
     * @param remark
     */
    void reject(Integer withdrawId, String remark);


    /**
     * 分页查询
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<Withdraw> queryPage(int pageNum, int pageSize);
}

